package com.example.demo.service;

import com.example.demo.entity.TeacherBean;
import com.example.demo.util.PageEntity;
import com.example.demo.util.ResponseEntity;

import java.util.List;

public interface TeacherService {
    
    List<TeacherBean> all();
    
    Integer add(TeacherBean teacherBean);
    
    Integer update(TeacherBean teacherBean);
    
    Integer delete(Integer id);
    
    TeacherBean one(Integer id);
    
    ResponseEntity login(TeacherBean teacherBean);
    
    PageEntity list(Integer pageNo, Integer pageSize, String name, String zhicheng, String sortOrder);
}
